<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Scene Text Recognition</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Scene Text Recognition<div class="ingroups"><a class="el" href="../../d4/d61/group__text.html">Scene Text Detection and Recognition</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d3a/classcv_1_1text_1_1BaseOCR.html">cv::text::BaseOCR</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html">cv::text::OCRHMMDecoder</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> class provides an interface for OCR using Hidden Markov Models.  <a href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/ddc/classcv_1_1text_1_1OCRTesseract.html">cv::text::OCRTesseract</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../d7/ddc/classcv_1_1text_1_1OCRTesseract.html" title="OCRTesseract class provides an interface with the tesseract-ocr API (v3.02.02) in C++...">OCRTesseract</a> class provides an interface with the tesseract-ocr API (v3.02.02) in C++.  <a href="../../d7/ddc/classcv_1_1text_1_1OCRTesseract.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaf6b1aecb0076128d099ead48a9170ead"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#ggaf6b1aecb0076128d099ead48a9170eadab4582fb3843b8ad7e209bf8f212ac2fe">cv::text::OCR_LEVEL_WORD</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#ggaf6b1aecb0076128d099ead48a9170eadae3afbc0d74dd08bf11ff430c59d75fa0">cv::text::OCR_LEVEL_TEXTLINE</a>
<br/>
 }</td></tr>
<tr class="separator:gaf6b1aecb0076128d099ead48a9170ead"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga688d3bbaf5a5ac19ffe9633d7dc0156a"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#ga688d3bbaf5a5ac19ffe9633d7dc0156a">cv::text::classifier_type</a> { <br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga688d3bbaf5a5ac19ffe9633d7dc0156aafc76612bdc2a94f57f02bd25a6255f12">cv::text::OCR_KNN_CLASSIFIER</a> = 0, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga688d3bbaf5a5ac19ffe9633d7dc0156aaf2248e60e9f6373cd7555a758a910262">cv::text::OCR_CNN_CLASSIFIER</a> = 1
<br/>
 }</td></tr>
<tr class="separator:ga688d3bbaf5a5ac19ffe9633d7dc0156a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac013d7b1a6a1b7d739b89474c20ec086"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#gac013d7b1a6a1b7d739b89474c20ec086">cv::text::decoder_mode</a> { <a class="el" href="../../d8/df2/group__text__recognize.html#ggac013d7b1a6a1b7d739b89474c20ec086a9d8baffabe0834b3eacaf2e32a5c7fdd">cv::text::OCR_DECODER_VITERBI</a> = 0
 }</td></tr>
<tr class="separator:gac013d7b1a6a1b7d739b89474c20ec086"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga91c5c4396fea4192c6bf5a8b2eba871a"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#ga91c5c4396fea4192c6bf5a8b2eba871a">cv::text::ocr_engine_mode</a> { <br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga91c5c4396fea4192c6bf5a8b2eba871aa308fc26cecf758c6d7f4d503f9c9d5a2">cv::text::OEM_TESSERACT_ONLY</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga91c5c4396fea4192c6bf5a8b2eba871aa42027b630054154cd8263f6a70f58ec3">cv::text::OEM_CUBE_ONLY</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga91c5c4396fea4192c6bf5a8b2eba871aa12cb4b814e595a715a93ddca68d07787">cv::text::OEM_TESSERACT_CUBE_COMBINED</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga91c5c4396fea4192c6bf5a8b2eba871aa8323b4ed6d93e0dd6b2656dd4eaa11c3">cv::text::OEM_DEFAULT</a>
<br/>
 }<tr class="memdesc:ga91c5c4396fea4192c6bf5a8b2eba871a"><td class="mdescLeft"> </td><td class="mdescRight">Tesseract.OcrEngineMode Enumeration.  <a href="../../d8/df2/group__text__recognize.html#ga91c5c4396fea4192c6bf5a8b2eba871a">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga91c5c4396fea4192c6bf5a8b2eba871a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga32b394fdfb46625c2134d5456c78576b"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#ga32b394fdfb46625c2134d5456c78576b">cv::text::page_seg_mode</a> { <br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba7f263fe084bd2b66918ca1b8828c7f7d">cv::text::PSM_OSD_ONLY</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba45394fc9b8bcf757170c7951aa0a833c">cv::text::PSM_AUTO_OSD</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba941826c53c13b78c57cb79d2a66062bc">cv::text::PSM_AUTO_ONLY</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba592c3b182ce902537d8aaed3e00d4d8c">cv::text::PSM_AUTO</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba12b616117a78aed4be8eb43cc5f3266a">cv::text::PSM_SINGLE_COLUMN</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba9df2b8ca6b05b6c4595d63ffe1ed5d65">cv::text::PSM_SINGLE_BLOCK_VERT_TEXT</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576baa3e77010118ac2ec965fa9b0bb55bbc8">cv::text::PSM_SINGLE_BLOCK</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba7e8598b350f3caf72196e723e5b210e3">cv::text::PSM_SINGLE_LINE</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba66b6336634f7fa1f726d7c1fc30b811e">cv::text::PSM_SINGLE_WORD</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba7086bc9fce731b1a2804aa15a118ec97">cv::text::PSM_CIRCLE_WORD</a>, 
<br/>
  <a class="el" href="../../d8/df2/group__text__recognize.html#gga32b394fdfb46625c2134d5456c78576ba31569ebd7f6f05aa73ab1021622377e4">cv::text::PSM_SINGLE_CHAR</a>
<br/>
 }<tr class="memdesc:ga32b394fdfb46625c2134d5456c78576b"><td class="mdescLeft"> </td><td class="mdescRight">Tesseract.PageSegMode Enumeration.  <a href="../../d8/df2/group__text__recognize.html#ga32b394fdfb46625c2134d5456c78576b">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga32b394fdfb46625c2134d5456c78576b"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga1d0cf1516cf8cfb2e53fdf639d547119"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/dc0/classcv_1_1text_1_1OCRHMMDecoder_1_1ClassifierCallback.html">OCRHMMDecoder::ClassifierCallback</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#ga1d0cf1516cf8cfb2e53fdf639d547119">cv::text::loadOCRHMMClassifier</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int classifier)</td></tr>
<tr class="memdesc:ga1d0cf1516cf8cfb2e53fdf639d547119"><td class="mdescLeft"> </td><td class="mdescRight">Allow to implicitly load the default character classifier when creating an <a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> object.  <a href="../../d8/df2/group__text__recognize.html#ga1d0cf1516cf8cfb2e53fdf639d547119">More...</a><br/></td></tr>
<tr class="separator:ga1d0cf1516cf8cfb2e53fdf639d547119"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8368b390a06f0323f9dead526337f6a3"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/dc0/classcv_1_1text_1_1OCRHMMDecoder_1_1ClassifierCallback.html">OCRHMMDecoder::ClassifierCallback</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#ga8368b390a06f0323f9dead526337f6a3">cv::text::loadOCRHMMClassifierCNN</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename)</td></tr>
<tr class="memdesc:ga8368b390a06f0323f9dead526337f6a3"><td class="mdescLeft"> </td><td class="mdescRight">Allow to implicitly load the default character classifier when creating an <a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> object.  <a href="../../d8/df2/group__text__recognize.html#ga8368b390a06f0323f9dead526337f6a3">More...</a><br/></td></tr>
<tr class="separator:ga8368b390a06f0323f9dead526337f6a3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad20627dd74a441192dc327adc9f9356d"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/dc0/classcv_1_1text_1_1OCRHMMDecoder_1_1ClassifierCallback.html">OCRHMMDecoder::ClassifierCallback</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/df2/group__text__recognize.html#gad20627dd74a441192dc327adc9f9356d">cv::text::loadOCRHMMClassifierNM</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename)</td></tr>
<tr class="memdesc:gad20627dd74a441192dc327adc9f9356d"><td class="mdescLeft"> </td><td class="mdescRight">Allow to implicitly load the default character classifier when creating an <a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> object.  <a href="../../d8/df2/group__text__recognize.html#gad20627dd74a441192dc327adc9f9356d">More...</a><br/></td></tr>
<tr class="separator:gad20627dd74a441192dc327adc9f9356d"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gaf6b1aecb0076128d099ead48a9170ead"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf6b1aecb0076128d099ead48a9170ead">◆ </a></span>anonymous enum</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaf6b1aecb0076128d099ead48a9170eadab4582fb3843b8ad7e209bf8f212ac2fe"></a>OCR_LEVEL_WORD <div class="python_language">Python: cv.text.OCR_LEVEL_WORD</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaf6b1aecb0076128d099ead48a9170eadae3afbc0d74dd08bf11ff430c59d75fa0"></a>OCR_LEVEL_TEXTLINE <div class="python_language">Python: cv.text.OCR_LEVEL_TEXTLINE</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="ga688d3bbaf5a5ac19ffe9633d7dc0156a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga688d3bbaf5a5ac19ffe9633d7dc0156a">◆ </a></span>classifier_type</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/df2/group__text__recognize.html#ga688d3bbaf5a5ac19ffe9633d7dc0156a">cv::text::classifier_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga688d3bbaf5a5ac19ffe9633d7dc0156aafc76612bdc2a94f57f02bd25a6255f12"></a>OCR_KNN_CLASSIFIER <div class="python_language">Python: cv.text.OCR_KNN_CLASSIFIER</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga688d3bbaf5a5ac19ffe9633d7dc0156aaf2248e60e9f6373cd7555a758a910262"></a>OCR_CNN_CLASSIFIER <div class="python_language">Python: cv.text.OCR_CNN_CLASSIFIER</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="gac013d7b1a6a1b7d739b89474c20ec086"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac013d7b1a6a1b7d739b89474c20ec086">◆ </a></span>decoder_mode</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/df2/group__text__recognize.html#gac013d7b1a6a1b7d739b89474c20ec086">cv::text::decoder_mode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggac013d7b1a6a1b7d739b89474c20ec086a9d8baffabe0834b3eacaf2e32a5c7fdd"></a>OCR_DECODER_VITERBI <div class="python_language">Python: cv.text.OCR_DECODER_VITERBI</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="ga91c5c4396fea4192c6bf5a8b2eba871a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga91c5c4396fea4192c6bf5a8b2eba871a">◆ </a></span>ocr_engine_mode</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/df2/group__text__recognize.html#ga91c5c4396fea4192c6bf5a8b2eba871a">cv::text::ocr_engine_mode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<p>Tesseract.OcrEngineMode Enumeration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga91c5c4396fea4192c6bf5a8b2eba871aa308fc26cecf758c6d7f4d503f9c9d5a2"></a>OEM_TESSERACT_ONLY <div class="python_language">Python: cv.text.OEM_TESSERACT_ONLY</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga91c5c4396fea4192c6bf5a8b2eba871aa42027b630054154cd8263f6a70f58ec3"></a>OEM_CUBE_ONLY <div class="python_language">Python: cv.text.OEM_CUBE_ONLY</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga91c5c4396fea4192c6bf5a8b2eba871aa12cb4b814e595a715a93ddca68d07787"></a>OEM_TESSERACT_CUBE_COMBINED <div class="python_language">Python: cv.text.OEM_TESSERACT_CUBE_COMBINED</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga91c5c4396fea4192c6bf5a8b2eba871aa8323b4ed6d93e0dd6b2656dd4eaa11c3"></a>OEM_DEFAULT <div class="python_language">Python: cv.text.OEM_DEFAULT</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="ga32b394fdfb46625c2134d5456c78576b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga32b394fdfb46625c2134d5456c78576b">◆ </a></span>page_seg_mode</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/df2/group__text__recognize.html#ga32b394fdfb46625c2134d5456c78576b">cv::text::page_seg_mode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<p>Tesseract.PageSegMode Enumeration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba7f263fe084bd2b66918ca1b8828c7f7d"></a>PSM_OSD_ONLY <div class="python_language">Python: cv.text.PSM_OSD_ONLY</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba45394fc9b8bcf757170c7951aa0a833c"></a>PSM_AUTO_OSD <div class="python_language">Python: cv.text.PSM_AUTO_OSD</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba941826c53c13b78c57cb79d2a66062bc"></a>PSM_AUTO_ONLY <div class="python_language">Python: cv.text.PSM_AUTO_ONLY</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba592c3b182ce902537d8aaed3e00d4d8c"></a>PSM_AUTO <div class="python_language">Python: cv.text.PSM_AUTO</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba12b616117a78aed4be8eb43cc5f3266a"></a>PSM_SINGLE_COLUMN <div class="python_language">Python: cv.text.PSM_SINGLE_COLUMN</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba9df2b8ca6b05b6c4595d63ffe1ed5d65"></a>PSM_SINGLE_BLOCK_VERT_TEXT <div class="python_language">Python: cv.text.PSM_SINGLE_BLOCK_VERT_TEXT</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576baa3e77010118ac2ec965fa9b0bb55bbc8"></a>PSM_SINGLE_BLOCK <div class="python_language">Python: cv.text.PSM_SINGLE_BLOCK</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba7e8598b350f3caf72196e723e5b210e3"></a>PSM_SINGLE_LINE <div class="python_language">Python: cv.text.PSM_SINGLE_LINE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba66b6336634f7fa1f726d7c1fc30b811e"></a>PSM_SINGLE_WORD <div class="python_language">Python: cv.text.PSM_SINGLE_WORD</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba7086bc9fce731b1a2804aa15a118ec97"></a>PSM_CIRCLE_WORD <div class="python_language">Python: cv.text.PSM_CIRCLE_WORD</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga32b394fdfb46625c2134d5456c78576ba31569ebd7f6f05aa73ab1021622377e4"></a>PSM_SINGLE_CHAR <div class="python_language">Python: cv.text.PSM_SINGLE_CHAR</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga1d0cf1516cf8cfb2e53fdf639d547119"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1d0cf1516cf8cfb2e53fdf639d547119">◆ </a></span>loadOCRHMMClassifier()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/dc0/classcv_1_1text_1_1OCRHMMDecoder_1_1ClassifierCallback.html">OCRHMMDecoder::ClassifierCallback</a>&gt; cv::text::loadOCRHMMClassifier </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>classifier</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.loadOCRHMMClassifier(</td><td class="paramname">filename, classifier</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<p>Allow to implicitly load the default character classifier when creating an <a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. OCRBeamSearch_CNN_model_data.xml.gz)</td></tr>
    <tr><td class="paramname">classifier</td><td>Can be one of classifier_type enum values. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga8368b390a06f0323f9dead526337f6a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8368b390a06f0323f9dead526337f6a3">◆ </a></span>loadOCRHMMClassifierCNN()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/dc0/classcv_1_1text_1_1OCRHMMDecoder_1_1ClassifierCallback.html">OCRHMMDecoder::ClassifierCallback</a>&gt; cv::text::loadOCRHMMClassifierCNN </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.loadOCRHMMClassifierCNN(</td><td class="paramname">filename</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<p>Allow to implicitly load the default character classifier when creating an <a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. OCRBeamSearch_CNN_model_data.xml.gz)</td></tr>
  </table>
  </dd>
</dl>
<p>The CNN default classifier is based in the scene text recognition method proposed by Adam Coates &amp; Andrew NG in [Coates11a]. The character classifier consists in a Single Layer Convolutional Neural Network and a linear classifier. It is applied to the input image in a sliding window fashion, providing a set of recognitions at each window location.</p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000059">Deprecated:</a></b></dt><dd>use loadOCRHMMClassifier instead </dd></dl>
</div>
</div>
<a id="gad20627dd74a441192dc327adc9f9356d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad20627dd74a441192dc327adc9f9356d">◆ </a></span>loadOCRHMMClassifierNM()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/dc0/classcv_1_1text_1_1OCRHMMDecoder_1_1ClassifierCallback.html">OCRHMMDecoder::ClassifierCallback</a>&gt; cv::text::loadOCRHMMClassifierNM </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.text.loadOCRHMMClassifierNM(</td><td class="paramname">filename</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d5e/ocr_8hpp.html">opencv2/text/ocr.hpp</a>&gt;</code></p>
<p>Allow to implicitly load the default character classifier when creating an <a class="el" href="../../d0/d74/classcv_1_1text_1_1OCRHMMDecoder.html" title="OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. ">OCRHMMDecoder</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The XML or YAML file with the classifier model (e.g. OCRHMM_knn_model_data.xml)</td></tr>
  </table>
  </dd>
</dl>
<p>The KNN default classifier is based in the scene text recognition method proposed by Lukás Neumann &amp; Jiri Matas in [Neumann11b]. Basically, the region (contour) in the input image is normalized to a fixed size, while retaining the centroid and aspect ratio, in order to extract a feature vector based on gradient orientations along the chain-code of its perimeter. Then, the region is classified using a KNN model trained with synthetic data of rendered characters with different standard font types.</p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000058">Deprecated:</a></b></dt><dd>loadOCRHMMClassifier instead </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
